/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package prj;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;

/**
 *
 * @author ciro
 */
@Entity
public class Locale implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private String id;
    private String proprietario;
    private String indirizzo;
    private String email;
    private String password;
    private String numTelefono;
    private String partitaIVA;
    private String orario;
    private int numPosti;
    @Lob 
    @Column(length=4096)
    private String descrizione;
    private String pathImage;

    /**
     * Get the value of pathImage
     *
     * @return the value of pathImage
     */
    public String getPathImage() {
        return pathImage;
    }

    /**
     * Set the value of pathImage
     *
     * @param pathImage new value of pathImage
     */
    public void setPathImage(String pathImage) {
        this.pathImage = pathImage;
    }

    /**
     * Get the value of descrizione
     *
     * @return the value of descrizione
     */
    public String getDescrizione() {
        return descrizione;
    }

    /**
     * Set the value of descrizione
     *
     * @param descrizione new value of descrizione
     */
    public void setDescrizione(String descrizione) {
        this.descrizione = descrizione;
    }


    /**
     * Get the value of numPosti
     *
     * @return the value of numPosti
     */
    public int getNumPosti() {
        return numPosti;
    }

    /**
     * Set the value of numPosti
     *
     * @param numPosti new value of numPosti
     */
    public void setNumPosti(int numPosti) {
        this.numPosti = numPosti;
    }

    /**
     * Get the value of orario
     *
     * @return the value of orario
     */
    public String getOrario() {
        return orario;
    }

    /**
     * Set the value of orario
     *
     * @param orario new value of orario
     */
    public void setOrario(String orario) {
        this.orario = orario;
    }

    /**
     * Get the value of partitaIVA
     *
     * @return the value of partitaIVA
     */
    public String getPartitaIVA() {
        return partitaIVA;
    }

    /**
     * Set the value of partitaIVA
     *
     * @param partitaIVA new value of partitaIVA
     */
    public void setPartitaIVA(String partitaIVA) {
        this.partitaIVA = partitaIVA;
    }

    /**
     * Get the value of numTelefono
     *
     * @return the value of numTelefono
     */
    public String getNumTelefono() {
        return numTelefono;
    }

    /**
     * Set the value of numTelefono
     *
     * @param numTelefono new value of numTelefono
     */
    public void setNumTelefono(String numTelefono) {
        this.numTelefono = numTelefono;
    }

    /**
     * Get the value of password
     *
     * @return the value of password
     */
    public String getPassword() {
        return password;
    }

    /**
     * Set the value of password
     *
     * @param password new value of password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * Get the value of email
     *
     * @return the value of email
     */
    public String getEmail() {
        return email;
    }

    /**
     * Set the value of email
     *
     * @param email new value of email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * Get the value of indirizzo
     *
     * @return the value of indirizzo
     */
    public String getIndirizzo() {
        return indirizzo;
    }

    /**
     * Set the value of indirizzo
     *
     * @param indirizzo new value of indirizzo
     */
    public void setIndirizzo(String indirizzo) {
        this.indirizzo = indirizzo;
    }

    /**
     * Get the value of proprietario
     *
     * @return the value of proprietario
     */
    public String getProprietario() {
        return proprietario;
    }

    /**
     * Set the value of proprietario
     *
     * @param proprietario new value of proprietario
     */
    public void setProprietario(String proprietario) {
        this.proprietario = proprietario;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Locale)) {
            return false;
        }
        Locale other = (Locale) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "prj.Locale[ id=" + id + " ]";
    }
    
}
